import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import './style/base.css'
import Vuex from 'vuex'
import store from './store'
import {post, fetch, patch, put, check} from './config/http'

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(Vuex)
//定义全局变量
Vue.prototype.$post = post;
Vue.prototype.$fetch = fetch;
Vue.prototype.$patch = patch;
Vue.prototype.$put = put;
Vue.prototype.$check = check;
new Vue({
  el: '#app',
  router, store,
  components: {App},
  template: '<App/>'
})

